<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<link href="${ctx}/styles/extremetable/extremecomponents.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/styles/extremetable/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/grid.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/global.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/show.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/rightmenu2.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/extremetable/extremecomponents.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script>
function showDetail(reasonId)
{
	var url = "${ctx}/house_partnershipAction.do?method=getGoodsRecordDetail&id="+reasonId;
	top.windowOpen(url,'showDetail','${key.goodsRecordTitle}',230,450);
}
function setReason(id,type)
{
	parent.setReason(id,type);
}

function getPageNO()
{
	return document.getElementById("ec_p").value;
}
</script>
</head>
<body onload="init()" >
<ec:ceTable items="goodsRecordList"
	action="${ctx}/house_partnershipAction.do?method=findAllGoodsRecordBySearch"
	var="goodsItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15">
	<ec:ceRow styleClass="grid"  onclick="setReason('${goodsItem.id}','${goodsItem.types}')" ondblclick="showDetail('${goodsItem.id}')" onContextMenu="return ShowContextMenu(event,'quick_rightmenu')">
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.goodsName}" property="name"   width="12%">
			<c:out value="${goodsItem.name}"/>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.goodsDescription}" property="description" width="50%">
			<c:out value="${goodsItem.description}"/>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.seqNo}" property="seqNo" value="${goodsItem.seqNo}" width="6%" sortable="true"/>
	</ec:ceRow>
	<ec:parameter name ="name" value=""></ec:parameter>
</ec:ceTable>
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu" >
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
	<tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
       <tr>
		  <td class="quickMenu_toolbarico"><a href="#" onclick="parent.openGoodsRecord();return false;" onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="${key.add}"/> ${key.add} </a></td>
          </tr>
          <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.editGoodsRecord();return false;" onfocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" border="0" align="absbottom" alt="${key.modify}"/> ${key.modify}</a></td>
          </tr>
		  <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.showDeleteGoodsRecord();return false;" onfocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" border="0" align="absbottom" alt="${key.delete}"/> ${key.delete}</a></td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>
<script>
function init()
{
	var obj = findFrame('main');
	var n = obj.$F('goodsName');
	$('name').value = n;
	parent.window.document.all('connTabPanel').style.height=document.body.scrollHeight;
}
</script>
</body>
</html>